package com.xyh.springboot.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author xyh
 * @since 2020-12-25
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("t_permission")
public class Permission extends Model {

    private static final long serialVersionUID = 1L;

    @TableId(value = "permission_pkid", type = IdType.AUTO)
    private Integer permissionPkid;

    private String permissionName;

    private String permissionInfo;

    private String moduleUrl;

    /**
     * 父亲id，自引用
     */
    private Integer pid;


}
